package com.gooluke.generator;

/**
 * @author gooluke
 * description
 * datetime 2025-03-27 20:13
 */
public class MybatisPlusCodeGeneratorBuilder {

    private MybatisPlusCodeGenerator mybatisPlusCodeGenerator;

    public MybatisPlusCodeGeneratorBuilder() {
        this.mybatisPlusCodeGenerator = new MybatisPlusCodeGenerator();
    }

    public MybatisPlusCodeGenerator build() {
        return this.mybatisPlusCodeGenerator;
    }

    public MybatisPlusCodeGeneratorBuilder userName(String userName) {
        this.mybatisPlusCodeGenerator.setUserName(userName);
        return this;
    }

    public MybatisPlusCodeGeneratorBuilder password(String password) {
        this.mybatisPlusCodeGenerator.setPassword(password);
        return this;
    }

    public MybatisPlusCodeGeneratorBuilder host(String host) {
        this.mybatisPlusCodeGenerator.setHost(host);
        return this;
    }

    public MybatisPlusCodeGeneratorBuilder port(long port) {
        this.mybatisPlusCodeGenerator.setPort(port);
        return this;
    }

    public MybatisPlusCodeGeneratorBuilder database(String database) {
        this.mybatisPlusCodeGenerator.setDatabase(database);
        return this;
    }

    public MybatisPlusCodeGeneratorBuilder projectLocation(String projectLocation) {
        this.mybatisPlusCodeGenerator.setProjectLocation(projectLocation);
        return this;
    }

    public MybatisPlusCodeGeneratorBuilder outputDir(String outputDir) {
        this.mybatisPlusCodeGenerator.setOutputDir(outputDir);
        return this;
    }

    public MybatisPlusCodeGeneratorBuilder parent(String parent) {
        this.mybatisPlusCodeGenerator.setParent(parent);
        return this;
    }

    public MybatisPlusCodeGeneratorBuilder entity(String entity) {
        this.mybatisPlusCodeGenerator.setEntity(entity);
        return this;
    }

    public MybatisPlusCodeGeneratorBuilder mapper(String mapper) {
        this.mybatisPlusCodeGenerator.setMapper(mapper);
        return this;
    }

    public MybatisPlusCodeGeneratorBuilder dao(String dao) {
        this.mybatisPlusCodeGenerator.setDao(dao);
        return this;
    }

    public MybatisPlusCodeGeneratorBuilder service(String service) {
        this.mybatisPlusCodeGenerator.setService(service);
        return this;
    }

    public MybatisPlusCodeGeneratorBuilder controller(String controller) {
        this.mybatisPlusCodeGenerator.setController(controller);
        return this;
    }

    public MybatisPlusCodeGeneratorBuilder author(String author) {
        this.mybatisPlusCodeGenerator.setAuthor(author);
        return this;
    }


}
